{% extends "admin/base_site.html" %}
{% load census_filters %}
{% load i18n admin_modify adminmedia %}
{% load url from future %}


{% block branding %}
<h1 id="site-name">{% trans 'Khawajgan Census Reports' %}</h1>
{% endblock %}
        
{% block breadcrumbs %}
<div class="breadcrumbs">
     <a href="../">{% trans "Home" %}</a>     
</div>
{% endblock %}

{% block content %}
<h1> Khawajgan Census City Kabilah Report</h1>

	{% for city, kabilah_details in city_details %}
		<h2>'{{city}}' City Kabilah Report</h2>
		
		<TABLE>
			<TR>
			<TH align="left">No.</TH>
			<TH align="left">Kabilah </TH>
			<TH align="left">Total </TH>		
			</TR>
			{% for kabilah, count in kabilah_details %}
				<TR>
				{% if forloop.last %}
					<TD></TD>
					<TD></TD>
					<TD>{{count}}</TD>				
				{% else %}				
					<TD>{{forloop.counter}}</TD>
					<TD>{{kabilah}}</TD>
					<TD>{{count}}</TD>
				{% endif %}	
				</TR>
			{% endfor %}				
		</TABLE>	
		
	{% endfor %}
{% endblock %}
